<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css">
<!--
#title {
	background-image: url(images/bg-header.jpg);
	background-repeat: repeat;
	height: 50px;
	width: 1000px;
	margin-right: auto;
	margin-left: auto;
}
#menu {
	font-size: 25px;
	line-height: 30px;
	padding-top: 10px;
	padding-left: 5px;
}
#menu a:link, a:visited {
	color: #999999;
	text-decoration: none;
}
#menu a:hover, a:active {
	color: #B9DBDB;
	text-decoration: blink;
}
#left a:link, a:visited {
	color: #999999;
	text-decoration: none;
}
#left a:hover, a:active {
	color: #000000;
}
#container {
	width: 1000px;
	margin-right: auto;
	margin-left: auto;
	background-color: #FFFFFF;
}
#featurebk {
	background-image: url(images/title1.jpg);
	background-repeat: no-repeat;
	height: 200px;
}
#left {
	float: left;
	width: 400px;
}
#right {
	float: left;
	width: 570px;
	margin-left: 10px;
	border-left-width: 1px;
	border-left-style: dotted;
	border-left-color: #999999;
	margin-top: 5px;
}
#clear {
	clear: both;
}
#bottom {
	background-image: url(images/bg-footer2.png);
	background-repeat: no-repeat;
	height: 102px;
}
#copyright {
	color: #505050;
	font-size: 15px;
	line-height: 30px;
	margin-left: 250px;
	margin-bottom: 30px;
	padding-top: 40px;
}
#letftitle {
	font-size: 25px;
	line-height: 30px;
	color: #333333;
	border-bottom-width: 1px;
	border-bottom-style: double;
	border-bottom-color: #999999;
	margin-top: 5px;
	padding-left: 5px;
}
#ldetail {
	border-top-width: 1px;
	border-bottom-width: 1px;
	border-top-style: dotted;
	border-bottom-style: dotted;
	border-top-color: #999999;
	border-bottom-color: #999999;
	font-size: 15px;
	line-height: 25px;
	color: #666666;
	padding-left: 5px;
}
#ltable1 {
	font-size: 18px;
	line-height: 28px;
	color: #333333;
}
#lrcomend {
	font-size: 25px;
	line-height: 30px;
	color: #666666;
	margin-top: 5px;
	padding-left: 5px;
}
#lrank {
	font-size: 16px;
	line-height: 25px;
	color: #666666;
}
#lnews {
	font-size: 16px;
	line-height: 30px;
	color: #666666;
}
#wai {
	background-repeat: repeat;
	background-image: url(images/clouds.jpg);
}
#news1title {
	font-size: 25px;
	line-height: 30px;
	color: #333333;
	margin-top: 10px;
	margin-left: 5px;
	border-bottom-width: 1px;
	border-bottom-style: solid;
	border-bottom-color: #999999;
}
.STYLE1 {
	font-size: 14px;
	color: #666666;
}
#right #rcon {
	font-size: 14px;
	line-height: 25px;
	margin-left: 10px;
}
.STYLE2 {color: #666666}
#rtitle {
	font-size: 15px;
	line-height: 25px;
	color: #666666;
	border-bottom-width: 1px;
	border-bottom-style: dashed;
	border-bottom-color: #333333;
}
.STYLE3 {
	font-size: 24px;
	color: #333333;
}
#comment {
	font-size: 18px;
	line-height: 30px;
	margin-left: 10px;
}
-->
</style>
<script language="javascript" type="">
function Mycheck(){
if(form1.User[username].value=="")
{
alert("用户名不能为空！！");return false;}
if(form1.User[password].value=="")
{alert("密码不能为空！！");return false;}
if (form1.User[password2].value=="")
{alert("确认密码不能为空！！");return false;}
if(form1.User[password].value!=form1.User[password2].value)
{alert('您两次输入的密码不一致！');return false;}
if(form1.User[question].value=="")
{alert("密保问题不能为空！！");return false;}
if(form1.User[answer].value=="")
{alert("密保答案不能为空！！");return false;}
if (form1.User[address].value=="")
{alert("家庭住址不能为空，请填写正确的地址！！");return false;}

if (form1.User[tel].value=="")
{alert("联系电话不能为空！！");return false;}
if (isNaN(form1.User[tel].value))
{alert("联系电话必须为数字型！！");return false;}
if (form1.User[email].value=="")
{alert("email不能为空，请填写正确的邮件！！");return false;}
var i=form1.User[email].value.indexOf("@")
var j=form1.User[email].value.indexOf(".")
if ((i<0)||(i-j>0)||(j<0))
{alert("您输入的Email格式不正确，请重新输入！！");return false;}
form1.submit();
}
</script>

</head>

<body>
<div id="wai">
  <div id="container">
    <div id="title">
      <div id="menu"><table width="640" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="74"><a href="<?php echo $this->createUrl("site/index");?>">首页</a></td>
    <td width="85"><a href="<?php echo $this->createUrl("article/index");?>" >博文</a></td>
    <td width="119"><a href="<?php echo $this->createUrl("article/create");?>">发博文</a></td>
    <td width="115"><a href="<?php echo $this->createUrl("board/index");?>">留言板</a></td>
    <td width="93"><a href="<?php echo $this->createUrl("user/view",array("id"=>Yii::app()->user->id));?>">关于我</a></td>
    <td width="154">&nbsp;</td>
    </tr>
</table>
    </div>
  </div>
  <div id="featurebk"></div>
   <div id="left">
     <div id="letftitle">关于我</div>
     <table width="350" border="0" cellpadding="0" cellspacing="0" id="ltable1">
  <tr>
    <td width="69">&nbsp;</td>
    <td width="180"><img src="images/12.png" width="180" height="177" /></td>
    <td width="101">&nbsp;</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td align="center">云裳花开</td>
    <td>&nbsp;</td>
  </tr>
 </table>

     <div id="ldetail">91年人，喜欢动漫，散文，哲学小说，没事爱四处逛<br />
     邮箱：1525781887@qq.com</div>
     <div id="lrcomend">文章分类-----------------------------------</div>
     <div id="lrank">
       <ul>
       <li><a href="#">诗歌</a></li>
       <li><a href="#"> 随笔</a></li>
       <li> <a href="#">电影评论</a></li>
       <li> <a href="#">科技 </a></li>
       <li><a href="#">其它 </a></li>
     </ul></div>
     
     <div id="lrcomend">推荐文章-----------------------------------</div>
     
     <div id="lnews">
       <ul>
         <li><a href="new1">微信开放WiFi接口，醉翁之意在乎O2O还是大数据</a></li>
         <li><a href="#">Go语言诞生5周年！10大Go语言开源项目</a></li>
         <li><a href="#">神器 VisuAlgo：通过动画学习算法和数据结构</a></li>
         <li><a href="#">如何设计优雅的移动游戏</a></li>
         <li><a href="#">云计算华山论剑：云如何改变企业</a></li>
       </ul>
      </div>
   </div>
    
   
   
   
	<div id="right">
    <div id="rtitle">首页&gt;关于我</div>          
     
	<div id="right">
	  <div id="r-title">修改个人信息：</div>
	  </br>
	  <div id="conr-r1"></div>
		  <table width="500" border="0" cellpadding="0" cellspacing="0" id="contable2">
			  <form name="form1" method="post" action="index.php?r=user/update&id=<?php echo $model['uid']; ?>" onSubmit="return Mycheck()">
				<tr>
					<td >用户名</td>
					<td ><input name="User[username]" type="text" size="15" value="<?php echo $model['username'] ?>">*</td>
				</tr>
					<td height="48">密码</td>
					<td><input name="User[password]" type="password" size="15" />*</td>
				</tr>
				 <tr>
					<td >确认密码</td>
					<td><input name="password2" type="password"size="15" />*</td>
				</tr>
				<tr>
					<td height="54">性别</td>
					<td><label>
					  <input type="radio" name="User[sex]"  value="1" <?php if($model['sex'] == '1') echo 'checked'?>/>
				男 
					<input type="radio" name="User[sex]" id="radio2" value="2" <?php if($model['sex'] == '2') echo 'checked'?> />
				女</label></td>
				</tr>
				<tr>
					<td height="48">密保问题</td>
					<td> <input name="User[question]" type="text"  size="30"  value="<?php echo $model['question'] ?>"/>      
				   *如你母亲姓名？</td>
				</tr>
				<tr>
					<td height="48">设置答案</td>
					<td> <input name="User[answer]" type="text" size="30" value="<?php echo $model['answer'] ?>"/></td>
				</tr>
				<tr>
					<td height="48" >邮箱</td>
					<td><input name="User[email]" type="text"  size="30" value="<?php echo $model['email'] ?>"/></td>
				</tr>
				<tr>
					<td height="48">地址</td>
					<td> <input name="User[address]" type="text"  size="30" value="<?php echo $model['address'] ?>"/></td>
				</tr>
				<tr>
					<td height="48">联系电话</td>
					<td> <input name="User[tel]" type="text"  size="30" value="<?php echo $model['tel'] ?>"/></td>
				</tr>
				<tr>
					<td>&nbsp;</td>
					<td><label>
					<input type="submit" name="submit2"  value="提交信息" />&nbsp;&nbsp;
					</label></td>
			  </tr>
			</form>
		</table>
	  </div>
	</div>
   
   <div id="clear"></div>
   
   <div id="bottom">
     <div id="copyright">Copyright © 2014 SimpleBlog 华师大计算机科学与技术 版权所有</div>
   </div>
  </div>
</div>
</body>
</html>



